Got rid of magic numbers

Defined constants of UP and DOWN