fixed reset not happening after game end