Pulled all functions out of board.on and socket loop; added Ultrasonic Map to index_test file