JavaFX Right Code Organization [on hold]

So I have this school project where I had to develop a board game. This project had two phases: the first one, wich implemented a text interface, and the second one, with a graphic interface. I’m having a hard time finding the right way to organize the code. Is there some generic way to do it? PS: I have to implement the Observer interface Thanks guys!