fixed newgame function