old_contents: import os
  
  import pygame
  
  
  class Tile:
      """A simple tile in the gameworld"""
  
      def __init__(self, x, y, name):
          self.name = name
          self.x = y
          self.y = y
          path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "../" + name + "/" + name + ".png")
          try:
              self.sprite = pygame.image.load(path)
          except:
              print("Could not load sprite for " + name)
  
      def draw(self, screen):
          screen.blit(self.sprite, (self.x, self.y))
new_contents: import os
  
  import pygame
  
  
  class Tile:
      """A simple tile in the gameworld"""
  
      def __init__(self, x, y, name):
          self.name = name
          self.x = x
          self.y = y
          path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "../" + name + "/" + name + ".png")
          try:
              self.sprite = pygame.image.load(path)
          except:
              print("Could not load sprite for " + name)
  
      def draw(self, screen):
          screen.blit(self.sprite, (self.x, self.y))
subject: Fix bug where Tile.x was initialized to same as tile.y