Fixed bugs in board creation from file