Updated moveUp and moveDown