Changed game.isFinished() to return a boolean.
Used short-circuit code to make it faster.
Used for-each loop to make it more general purpose.
Returned boolean 'cause it makes code more readable.