More game logic

Edited a few points in game logic to make more sense and reduce
redundancy, adding a "DoesItBreak" function.
Also added some logic that may help with implementing background music.