fixes, but end game does not work