Handles the events from ledmap.js and changes the colors when interacting with it