Added optimized code, it works <3
forgot optimized.java lol