added duplicate of Board.calculateValue to calculate number of available moves into score4