added piece finder, cleaned up the king checking code in move func