Added function to check hypotetical win

Split the function that checks for the endgame into 2, one that
will actually perform the endgame actions and another that
can be used to test hypotetical situations, useful for the AI.
Can sometimes win

The AI will now check if there exist a column that will make it win
the game instantly.