These variables are assigned every time the displaydown function is called, which is not necessary.