Code for Arduino based game