lining out game logic