Fixed a bug with the clicking at the game end.

Signed-off-by: nicholaslum444 <nicholaslum444@hotmail.com>