public void tick()
    {
        if(dmgLen > 0)
        {
            dmgTick++;
            if(dmgTick > 120) //120 = 2 seconds
            {
                dmgLen = dmgTick = 0;
            }
        }
        
        if(moving)
        {
            walkTick++;
            if(count >= walkList.size())
            {
                walkList.clear();
                listButtons(true);
                moving = false;
                moved = true;
                count = 0;
                //System.out.println("Finished moving");
            }
            else
            {
                xOff += 4 * (walkList.get(count)[0] - this.dX / Game.TILESIZE);
                yOff += 4 * (walkList.get(count)[1] - this.dY / Game.TILESIZE);
                if(walkTick >= 8)
                {
                    xOff = yOff = walkTick = 0;
                    this.dX = walkList.get(count)[0] * Game.TILESIZE;
                    this.dY = walkList.get(count)[1] * Game.TILESIZE;
                    //System.out.println("x: " + x + " y: " + y);
                    count++;
                }
            }
        }
        else if(walkList.size() > 1)
        {
            listButtons(false);
            moving = true;
            //System.out.println("Started moving");
        }
        
        /*if(Game.map.count > 0)
        {
            xOff2 = Game.map.mX * Game.map.count + Game.xOff * Game.TILESIZE;
            yOff2 = Game.map.mY * Game.map.count + Game.yOff * Game.TILESIZE;
        }
        else {
            xOff2 = yOff2 = 0;
        }*/
    }