end game dont working but game is working