fixed bug that started game at the end