fixed some hashmap bugs, now wins 67% against random