changed all x to y
made AI return an AIMove