Changed getBoard to return array of moves