Rearranged code abit, solved bug in queen's possiblemoves.