JS-Chess Chess in P5 Javascript get every possable move for each piece then check if any of those moves attack the king