I received SNES Controller in bad shape. Instead of throwing it away, I decided to test it out using Arduino. I found this article https://hackaday.io/project/7498-snes... and used the code listed ower there to test the controller. To find pinout I simply searched for SNES pinout https://www.igorkromin.net/fp-content... . It turned out that it still works so I gave it a good clean up.