Edited transformActionsCycleToStatesCycle so that it doesn't add the initial state