tried halfheartedly to implement leavegame and failed accordingly