changed WhoseTurn to int instead of boolean, to return thress diffrent outcomes