moved tiles into their own class