made robot rotate in corret direction