fixed a bunch of bugs and win conditions n stuff