The resolution isn't set properly. The game won't let me capture via en passant or promote pawns, seems like there are some glaring errors in the code.
Edit: holy shit, the amount of illegal moves you allow during check is incredible. I was even allowed to capture the opposing color's king. Please fix this horribly broken game before you submit it again.