bug fixes in Board.calculateValue and MotorTest