player direction change and boundries set