Bug fixes for minimax algo and the scoreboard