Refactored code to use methods and have better efficiency. Damn Proud