Fixed bug where game wouldn't end.