Adding Snes controller code