Changed the do while to a while loop in boardview.