worked on inputMove