There is a help button at the menu to teach you how to play. If there are pieces side-by-side and you run out off moves, game over. If the squares haven't covered all the green outlines and you run out of moves, game over. I can get how it seems confusing. If you're getting a loss when there should be no reason for one I apologize, I did encounter that during bug testing but thought I fixed it.