wip game. need to fix new bug, but was working 99.9999% flawlessly before that.
game seems to work now (fixed infinite looping); probably still bugs somewhere. should really try not manually testing this stuff...
refined filter function for possiblewins array