movement functions inputted and borderControlled
javascript functions, border control & spd boost