changed negative 'tired' variable into positive 'moves' for less confusing-ness
changed negative 'tired' variable into positive 'moves' for less confusing-ness