Implement cell game
Add protection from infinite loops