Refactored magic numbers, added support for newer Xarcade PCBs