fixed my dumbass math, added some extra variables, fixed input box being treated as string