Fixed bugs regarding captured pieces not being added to drop tables. Also fixed minor bugs.