modified onBoardManager so that it compiles (removed code with syntax and semantic issues)