added basic move handling in the controller