Now receives 20 codes; removed some unnecessary globals
Beacon can now be set to any of 20 numbers