Update Game.java

Implemented ending after max steps are done