newgame and attack functions