Changed Board::getRandomMove to call getPossibleMoves and choose a random move out of them if it has failed to get a random move 50 times