working some refactors done. Will change the gamepanel to board