got code back to where i wanted it, now need to figure out how to compute check mate and how to compute getting out of check