added ValueError if attempt to drag off screen, plus test to 0 in x direction