public Player(String user, float startx, float starty) throws SlickException{
        
        username = user;
        
        Image spritesheet = new Image("data/NewSprite.png");

        sprites = new Image[4][3];
        for (int h = 0; h < sprites.length; h++){
            for (int w = 0; w < sprites[0].length; w++){
                sprites[h][w] = spritesheet.getSubImage(w*32, h*36, 32, 36);
            }
        }
        /*
        * false variable means do not auto update the animation.
        * By setting it to false animation will update only when
        * the user presses a key.
        */
        up = this.up.copy();
        down = this.down.copy();
        left = this.left.copy();
        right = this.right.copy();

        sprite = down;

        absolutex = startx;
        absolutey = starty;

        container = new Rectangle(absolutex,absolutey,32f,36f);
    }