write moving object class, with draw and move methods