Reversed the code in brick collision so it checks the y-axis and then the x-axis. Also cleaned up the rules code a little bit.