retarded code made less retarded (no cycling throuh all possible states to get all possible reaches.. more than once)