public void move(){ double dx=speed*direction; x=x+dx; }