Correctly detects when game is over...

Currently there is a UI bug. It detects when the game is over but the
UI has not added the new tile onto the board yet, making it seem like
the detection is wrong...