changed movement behavior and added rotation