Added valid actions counter for easier testing