Tested, and fixed chess game