Moved some stuff around
Added switchTile