Added checkmating, fixed bugs, and did some package restructuring