Added comments and refactored move and click methods