Wrote movemebt for player class