Refactored numberTile and terrainTile classes