Hmm and then I should put the events that happen at the end of the game (not when SDL quits, I could still need it for a nice scoreboard or something like that) inside the main loop in a conditional and check if the game has ended each time the game loops? Still sounds logical and it also helps to avoid some unexpected errors I think. So thanks again. You guys help me a lot I'm very grateful for that. This way this game will be finished in no time and I can start another and then another and each one more difficult so I might get better and have less basic questions like this It's just both SDL and OOP are yet new for me. Object orientation is half-new(there was something that could almost be called similar to object orientation in Game Maker) Or after this game I might study a bit of Delphi it seems useful. Maybe more useful than FPC.