commented out endgame since code was changed.