def move_left(self):
p_v = self.x
self.x -= 100
if self.x >= 0:
pyautogui.moveTo(self.x, self.y, duration=0.25) # Moving in the left area
print(self.x)
else:
self.x = p_v # Sets to zero