removed unused variables and methods, renamed Method GOver to endGame