Updated gamepad API

Now uses the most recent interface: navigator.getGamepads()