Fix basic legality check for CAP

Among other things, it allowed having more than 4 moves as well as using moves and abilities from future gens