TODO: Rewrite distance_to_action for new state spaces