fixed KI bug

now the KI is able to check whether a player is able to win or not