public void move()
{

        if (xcor >= framex)
        {
            xcor = -image.getWidth(null);   
        }
        else if (xcor <= -image.getWidth(null))
        {
            xcor = framex;
        }
        // Controls wrap around in the y-axis
        if (ycor >= framey)
        {
            ycor = -image.getWidth(null);   
        }
        else if (ycor <= -image.getWidth(null))
        {
            ycor = framey;
        }
    
     xcor += xVelocity;
    ycor +=yVelocity;
       
    xfront = xcor + image.getWidth(null)/2;
    yfront = ycor;
    
    middlex = xcor + image.getWidth(null) / 2;
    middley = ycor + image.getHeight(null) / 2;
    }