created basic flag system for button presses, there is still the glaring bug of dropped packets.