public PlayerUpdate getUpdate(){
        PlayerUpdate x = new PlayerUpdate();
        
        if(sprite.equals(up)){
            x.spriteDirection = "up";
        }
        else if(sprite.equals(left)){
            x.spriteDirection = "left";
        } else if(sprite.equals(right)){
            x.spriteDirection = "right";
        } else{
            x.spriteDirection = "down";
        }
        
        x.username = username;
        
        x.x = absolutex;
        x.y = absolutey;
        
        return x;
    }