converted skater drag to command pattern