Change the tile datatype from uint8_t to tile_t
Make sure to lose if no tile can be placed!