Refactor Tile.flip to take a 2-bit number as input
Refactor Tile code to use switch and array methods