Fixed bug in which if you go back after generating a board it crashes.