There is no "correct" way or standard in doing a certain program. It is up to the programmer to develop his/her own style and be comfortable with it. Choose a sample program and look at the way the code is organized. Some games I looked at are arranged by: Initialization, Main Program, Functions (input and output), Graphics (map and sprite), Sound, Data Arrays. Just don't load everything in...