Made the code use OOP. Need to fix up brickclicker.buyItem() because it uses a poorly made patch.