Changed Board::getRandomMove to use rand() and work more efficiently