private void move(){
        playerRect.x += xDirection;
        playerRect.y += yDirection;
        if(playerRect.x <= 0)
            playerRect.x = 0;
        if(playerRect.x >= 785)
            playerRect.x = 785;
        playerRect.y -= Jump;
        if(Jump >= 1)
            Jump -= .25;
        gravity();
    }