now using arrays instead of hashmap for calculating AI moves, still too slow though, more performance tweaks needed