k-Certainty Exploration Method: an action selector to identify the environment in reinforcement learning