added moveUp() and moveDown() functions