game over resetting and loggin