fixed an edge case where the enemy piece could not be taken