src/Vehicle.java
//Declare methods of movements (left and right)
Declare methods of movements (left and right)
Declare methods of movements ( left and right )
public void moveRight(int pixels, int FRAME_WIDTH){
		this.xPos += pixels; 
		if (xPos >= FRAME_WIDTH + width)
		{
			xPos = 0 - width;
		}
	}
public void moveRight ( int pixels , int FRAME_WIDTH ) { this . xPos += pixels ; if ( xPos >= FRAME_WIDTH + width ) { xPos = 0 - width ; } }
Declare methods of movements (left and right)
Declare methods of movements ( left and right )
// increase xPos by users desired pixel amount //If vehicle's xPosition is greater than the frame, set xPosition to the left