state is responsible for knowing if it's the target we are looking for