added controller code to /gamecontroller