fixed gamelogic; works at the moment, but has no triggered end of a game