Renamed game over method in engine

Moved nextMove method to engine for better coupling and cohesion