fix: comparison of a boolean expression with int other than 0 or 1

Issze #570 by dcb314 on github
Merge pull request #572 from YueRen/spielwiese

fix: comparison of a boolean expression with int other than 0 or 1