Any advice? This is due in 3 hours so its super time important

http://pastebin.com/dxg9HyT9

Even if you spot a problem with the math or have some advice please help. Been working on this all night. It almost works, just a few lines out of place.