Fixed move function

Move can now move in all four directions and stops when gets to the the
screen's edge