captured pieces functionality added, some overall improvements