refactoring gameBoardPanel