fixed bug where game crahsed on win