working on ending game