Code a better way please :D

Your coding is like driving with closed eyes, the main thing is to get to the target