better checkSafe function implemented
added scrolled window, will now go back to add castling and en passant
adding castling
added wasCastle bool to position, reworking castling that way