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
Merge pull request #474 from Slayer95/patch-1

Fix basic legality check for CAP