Fixed the whole code, now working perfectly and allows to create tiles up the ground. Jump isn't good though and have to be enhanced