Refactory on some variables
Refactory on horizontal moviment functions