simple flips fixed to handle different amount of tiles