Created update() method in Player class to get assign accelerometer
x-axis values to player position