Just recently I started working with SFML, I've mostly just been looking over some youtube tutorials, looking at the documentation and doing simple things like opening images, sounds, etc. I'm trying to start simple by making a tic-tac-toe game, but I just don't know how I should organize the code. I've only written console programs up until this point so using graphics or even any other library (besides the standard library) is all new to me. So far I have a window with a tic-tac-toe board but when I try to add to the code I feel like its really messy and I'm just sort of throwing it together. I also have a layout of what I think should be grouped together, like the logic of the game, loading the board and its pieces, how the user interacts with the game. Does anyone have a basic idea or some advice on how to approach getting started on this.