Renamed variables. Added functionality to Tile class.