Completely refactored the PlainTile class