title: What is the equivalent of Java's Main Method in Swift?
body: <p>Does swift execute all functions (including custom) in the '.swift' file simultaneously? Or is there a main method in which you have to call the other ones? Because I want to call a certain method in my game, whenever the player hits the edge of the screen. </p>