Next, first pygame or not, you need to get a grasp of functions and classes before continuing. Again, there are numerous "tutorials" out there that have you immediately start coding pygame programs in the global namespace. They are all horrible.