implimented hashmap for bluetooth input. Needs more efficient solution. Stable