Implemented endGame(), but buggy. Same with sound