public void maintenence()// well, kind of what it sounds like. Kings pieces,
    // checks for draws, etc...
    {

        for (int x = 0; x < 8; x++)// kinging.
        {
            if (theBoard[x][7].getPiece() == '@')
            {
                theBoard[x][7].king();
            } else if (theBoard[x][0].getPiece() == '$')
            {
                theBoard[x][0].king();
            }
        }

        int tempDollas = dollaNum;
        int tempAts = atNum;

        dollaNum = 0;
        atNum = 0;
        boolean at = false;// making sure the game's not over.
        boolean cash = false;
        for (int x = 0; x < 8; x++)
        {
            for (int y = 0; y < 8; y++)
            {

                if (theBoard[x][y].getPiece() == '@')
                {
                    at = true;
                    atNum++;
                } else if (theBoard[x][y].getPiece() == '$')
                {
                    cash = true;
                    dollaNum++;
                }

            }
        }
        ats = at;
        dollas = cash;

        if (dollaNum != tempDollas || atNum != tempAts)
        {
            timeSinceJump = 0;
        } else
        {


            timeSinceJump++;
        }

    }