changed global AVAILABLE_STATES to AVAILABLE_ACTIONS. Just a name change.